
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.Employee;

public interface EmployeeDao extends Dao {

    /**
     * Retrieves all of the employees
     */
    public List getEmployees(Employee employee);

    /**
     * Gets employee's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the employee's id
     * @return employee populated employee object
     */
    public Employee getEmployee(final Long id);

    /**
     * Saves a employee's information
     * @param employee the object to be saved
     */    
    public void saveEmployee(Employee employee);

    /**
     * Removes a employee from the database by id
     * @param id the employee's id
     */
    public void removeEmployee(final Long id);
}

